layui.use(function() {

  let $ = layui.$;
  // 推出事件
  $('#logout').click(function(data) {
    localStorage.removeItem('access_token');
    location.href = '/logout';
  });
});